// 跨域代理前缀
// const API_PROXY_PREFIX='/api'
// const BASE_URL = process.env.NODE_ENV === 'production' ? process.env.VUE_APP_API_BASE_URL : API_PROXY_PREFIX

const BASE_URL = process.env.VUE_APP_API_URL
module.exports = {
  // 登录
  // // LOGIN: `${BASE_URL}/old/pc/login`,
  // LOGIN: `${BASE_URL}/hq-auth/admin/login`,
  LOGIN: `${BASE_URL}/login`,
  // 登录时，发送验证码
  LOGIN_VERIFI_CODE: `${BASE_URL}/hq-auth/admin/getCaptcha`,
  // 忘记密码，发送短信验证码
  LOGIN_SEND_MSG: `${BASE_URL}/user/admin/sendChangeMsg`,
  // 忘记密码，验证短信验证码是否正确
  LOGIN_CHECK_CODE: `${BASE_URL}/user/admin/checkCode`,
  // 忘记密码，修改密码
  LOGIN_FORGOT: `${BASE_URL}/user/admin/forgetPwd`,
  // 首次登录，验证手机号，发送短信
  FIRST_LOGIN_SENDMSG: `${BASE_URL}/user/admin/sendLoginMsg`,

  // comon
  // 获取品牌列表
  // COMMON_BRAND_LIST: `${BASE_URL}/old/commBrand/list`,
  COMMON_BRAND_LIST: `${BASE_URL}/user/admin/commBrand/list`,
  // 获取企业/经销商/门店列表
  // COMMON_ORG_STORE_LIST: `${BASE_URL}/old/hq/pc/getOrgStore`,
  COMMON_ORG_STORE_LIST: `${BASE_URL}/sys/admin/hq/pc/getOrgStore`,
  // 获取租赁公司下全部门店
  // COMMON_ORG_ALL_STORE_LIST: `${BASE_URL}/old/hq/pc/getAllShopByCompanyId`,
  COMMON_ORG_ALL_STORE_LIST: `${BASE_URL}/sys/admin/hq/pc/getAllShopByCompanyId`,

  // setting
  // SYS_SETTING_UPLOAD: `${BASE_URL}/old/user/uploadUserImg`,
  SYS_SETTING_UPLOAD: `${BASE_URL}/member/admin/users/uploadAvatar`,
  // SYS_SETTING_UPDATE: `${BASE_URL}/old/hq/user/updateUserInfo`,
  SYS_SETTING_UPDATE: `${BASE_URL}/user/admin/hq/user/updateUserInfo`,

  // 账号管理
  // SYS_USER_SAVE: `${BASE_URL}/old/hq/pc/addOrEidt`,
  SYS_USER_SAVE: `${BASE_URL}/member/admin/users`,
  // SYS_USER_PAGE: `${BASE_URL}/old/hq/pc/findUserListForPage`,
  SYS_USER_PAGE: `${BASE_URL}/member/admin/users`,
  // SYS_USER_RESET_PWD: `${BASE_URL}/old/hq/pc/resetPwd`,

  SYS_USER_RESET_PWD: `${BASE_URL}//member/admin/users/`,
  // SYS_USER_DELETE: `${BASE_URL}/old/hq/pc/del`,
  SYS_USER_DELETE: `${BASE_URL}/member/admin/users/`,
  // SYS_LOGIN_DETAIL_PAGE: `${BASE_URL}/old/userLoginRecord/findPcUserLoginRecordPage`,
  SYS_LOGIN_DETAIL_PAGE: `${BASE_URL}/sys/sysLog/dml`,
  SYS_ACTION_DETAIL_PAGE: `${BASE_URL}/user/admin/tUserOperationRecord/findPcUserOperationRecordPage`,

  // 权限管理
  // SYS_ROLE_LIST: `${BASE_URL}/old/hq/pc/findRoleByRoletype`,
  SYS_ROLE_LIST: `${BASE_URL}/sys/admin/hq/pc/findRoleByRoletype`,
  // SYS_ROLE_PAGE: `${BASE_URL}/old/hq/pcRole/list`,
  SYS_ROLE_PAGE: `${BASE_URL}/sys/admin/hq/pcRole/list`,
  // SYS_ROLE_SAVE: `${BASE_URL}/old/hq/pcRole/saveOrEdit`,
  SYS_ROLE_SAVE: `${BASE_URL}/sys/admin/hq/pcRole/saveOrEdit`,
  // SYS_ROLE_DELETE: `${BASE_URL}/old/hq/pcRole/del`,
  SYS_ROLE_DELETE: `${BASE_URL}/sys/admin/hq/pcRole/del`,

  // 菜单管理
  // SYS_MENU_TREE: `${BASE_URL}/old/hq/pc/sysmenu/ls`,
  // SYS_MENU_TREE: `${BASE_URL}/sys/admin/hq/pc/sysmenu/ls`,
  SYS_MENU_TREE: `${BASE_URL}/sys/admin/hq/pc/sysmenu/tree`,
  // SYS_MENU_LOAD: `${BASE_URL}/old/hq/pc/sysmenu/load`,
  SYS_MENU_LOAD: `${BASE_URL}/sys/admin/hq/pc/sysmenu/load`,
  // SYS_MENU_GRANT: `${BASE_URL}/old/hq/pc/sysmenu/grant`,
  SYS_MENU_GRANT: `${BASE_URL}/sys/admin/hq/pc/sysmenu/addRoleAndGrant`,

  // 车辆信息
  // NM_INFO_PAGE: `${BASE_URL}/old/hq/nmInfo/findPcNmInfoPage`,
  NM_INFO_PAGE: `${BASE_URL}/business/admin/vehicleMember`,
  // NM_INFO_SAVE: `${BASE_URL}/old/hq/nmInfo/savePcNmInfo`,
  NM_INFO_SAVE: `${BASE_URL}/electric/admin/nmInfo/savePcNmInfo`,
  // NM_INFO_UPDATE: `${BASE_URL}/old/hq/nmInfo/updatePcNmInfoById`,
  NM_INFO_UPDATE: `${BASE_URL}/electric/admin/nmInfo/updatePcNmInfoById`,
  // NM_INFO_UPLOAD: `${BASE_URL}/old/nmInfo/uploadPcNmInfo`,
  NM_INFO_UPLOAD: `${BASE_URL}/electric/admin/nmInfo/nmInfo/uploadPcNmInfo`,

  // 门店信息
  ORG_LIST: `${BASE_URL}/user/admin/hq/userOrgInfo/findPcUserOrgInfoList`,

  // 客户管理
  // CUSTOMER_BLACK_PAGE: `${BASE_URL}/old/blackList/list`,
  CUSTOMER_BLACK_PAGE: `${BASE_URL}/member/admin/memberBlacklist`,
  // CUSTOMER_BLACK_UPLOAD: `${BASE_URL}/old/blackList/upload`,
  CUSTOMER_BLACK_UPLOAD: `${BASE_URL}/member/admin/memberBlacklist/image/upload`,
  CUSTOMER_IMAGE_UPLOAD: `${BASE_URL}/business/admin/companies/upload`,
  // CUSTOMER_BLACK_DELETE: `${BASE_URL}/old/hq/blackList/remove`,
  CUSTOMER_BLACK_DELETE: `${BASE_URL}/member/admin/memberBlacklist/remove/`,
  // CUSTOMER_INDIVIDUAL_PAGE: `${BASE_URL}/old/rider/findPageRiderList`,
  CUSTOMER_INDIVIDUAL_PAGE: `${BASE_URL}/member/admin/members`,
  // CUSTOMER_ENTERPRISE_PAGE: `${BASE_URL}/old/hq/companyInfo/findPcCompanyInfoPage`,
  CUSTOMER_ENTERPRISE_PAGE: `${BASE_URL}/business/admin/companies`,
  // CUSTOMER_ENTERPRISE_ADD: `${BASE_URL}/old/hq/companyInfo/savePcCompanyInfo`,
  CUSTOMER_ENTERPRISE_ADD: `${BASE_URL}/business/admin/companies`,
  // CUSTOMER_ENTERPRISE_EDIT: `${BASE_URL}/old/hq/companyInfo/updatePcCompanyInfoById`,
  CUSTOMER_ENTERPRISE_EDIT: `${BASE_URL}/business/admin/companies`,
  CUSTOMER_ENTERPRISE_DETAIL: `${BASE_URL}/business/admin/companies`,
  // CUSTOMER_ENTERPRISE_SELECT: `${BASE_URL}/old/hq/companyInfo/findPcParentList`,
  CUSTOMER_ENTERPRISE_SELECT: `${BASE_URL}/user/admin/companyInfo/findPcParentList`,
  CUSTOMER_AGENT_SELECT: `${BASE_URL}/business/admin/companies/all/list`,
  // CUSTOMER_BLACK_ADD: `${BASE_URL}/old/hq/blackList/add`,
  CUSTOMER_BLACK_ADD: `${BASE_URL}/member/admin/memberBlacklist`,
  CUSTOMER_BLACK_ADD_IMAGE: `${BASE_URL}/member/admin/memberBlacklist/image/upload`,
  // CUSTOMER_RIDER_BLACK_ADD: `${BASE_URL}/hq/riderBlackList/add`,
  CUSTOMER_RIDER_BLACK_ADD: `${BASE_URL}/member/admin/memberBlacklist`,
  // CUSTOMER_RIDER_BLACK_PAGE: `${BASE_URL}/riderBlackList/list`,
  CUSTOMER_RIDER_BLACK_PAGE: `${BASE_URL}/user/admin/riderBlackList/list`,
  // CUSTOMER_RIDER_BLACK_DELETE: `${BASE_URL}/hq/riderBlackList/remove`,
  CUSTOMER_RIDER_BLACK_DELETE: `${BASE_URL}/user/admin/hq/riderBlackList/remove`,
  // 供应商
  // CUSTOMER_AGENT_PAGE: `${BASE_URL}/old/AgentInfo/findPcAgentInfoPage`,
  CUSTOMER_AGENT_PAGE: `${BASE_URL}/user/admin/agentInfo/findPcAgentInfoPage`,
  // CUSTOMER_AGENT_ADD: `${BASE_URL}/old/AgentInfo/savePcAgentInfo`,
  CUSTOMER_AGENT_ADD: `${BASE_URL}/user/admin/agentInfo/savePcAgentInfo`,
  // CUSTOMER_AGENT_EDIT: `${BASE_URL}/old/AgentInfo/updatePcAgentInfoById`,
  CUSTOMER_AGENT_EDIT: `${BASE_URL}/user/admin/agentInfo/updatePcAgentInfoById`,

  // 门店信息
  // STORE_INFO_PAGE: `${BASE_URL}/old/hq/userOrgInfo/findPcUserOrgInfoPage`,
  STORE_INFO_PAGE: `${BASE_URL}/business/admin/stores`,
  // 门店下架
  STORE_INFO_DOWN: `${BASE_URL}/business/admin/stores/`,

  // STORE_INFO_SAVE: `${BASE_URL}/old/hq/userOrgInfo/savePcUserOrgInfo`,
  STORE_INFO_SAVE: `${BASE_URL}/user/admin/hq/userOrgInfo/savePcUserOrgInfo`,
  // STORE_INFO_UPDATE: `${BASE_URL}/old/hq/userOrgInfo/updatePcUserOrgInfoById`,
  STORE_INFO_UPDATE: `${BASE_URL}/user/admin/hq/userOrgInfo/updatePcUserOrgInfoById`,
  // STORE_PIC_UPLOAD: `${BASE_URL}/old/userOrgInfo/uploadPcUserOrgInfo`,
  STORE_PIC_UPLOAD: `${BASE_URL}/business/admin/stores/upload`,

  // 电池管理
  BATTERY_PAGE: `${BASE_URL}/business/admin/batteries`,
  BATTERY_SAVE: `${BASE_URL}/business/admin/batteries`,
  BATTERY_SAVE_UPLOAD: `${BASE_URL}/business/admin/batteries/upload`, // 电池上传
  BATTERY_UPDATE: `${BASE_URL}/electric/admin/batteryInfo/updatePcBatteryInfoById`,
  BATTERY_GET: `${BASE_URL}/electric/admin/batteryInfo/getPcBatteryInfoByCode`,
  BATTERY_UPDATE_STATUS: `${BASE_URL}/business/admin/batteries/`,
  // 电池调度
  BATTERY_SCHEDU: `${BASE_URL}/business/admin/batterySchedules`,
  // 获取电池最后一次定位/business/admin/batteryTrack/{batteryId}
  BATTERY_LAST_TRACK: `${BASE_URL}/business/admin/batteryTrack/`,
  // 获取电池轨迹
  BATTERY_LOCUS: `${BASE_URL}/business/admin/batteryTrack`,
  // 电池调度记录
  BATTERY_SCHEDU_PAGE: `${BASE_URL}/business/admin/batterySchedules`,
  BATTERY_ABNORMAL_PAGE: `${BASE_URL}/business/admin/batteryExceptions`,

  // 订单管理
  // 换电订单
  ORDER_BATTERY_PAGE: `${BASE_URL}/order/admin/list/batteryUse/byCondition`, // 列表
  ORDER_BATTERY_GET: `${BASE_URL}/order/admin/get/batteryUseByBatteryNo`, // 根据电池电池编号查询用电列表
  ORDER_BATTERY_DETAIL: `${BASE_URL}/order/admin/getById/`, // 详情
  // 套餐订单
  ORDER_REGULAR_DINNER_PAGE: `${BASE_URL}/order/hq/admin/regularDinner/riderRegularDinnerPaging`,
  ORDER_REGULAR_DINNER_GET: `${BASE_URL}/order/hq/admin/regularDinner/selectOneByOrderNo`,
  // 租车订单
  ORDER_CAR_LIST: `${BASE_URL}/order/admin/vehicleOrder/list`, // 列表查询
  ORDER_CAR_DETAIL: `${BASE_URL}/order/admin/vehicleOrder/detail`, // 租车订单详情
  CAR_ALSO_ON: `${BASE_URL}/order/admin/vehicleOrder/returnConfirm`, // 管理后台确认还车
  CAR_ALSO_IN: `${BASE_URL}/order/admin/vehicleOrder/takeConfirm`, // 管理后台确认取车
  // 套餐管理
  REGULAR_DINNER_PAGE: `${BASE_URL}/order/hq/admin/regularDinner/paging`,
  REGULAR_DINNER_SAVE: `${BASE_URL}/order/hq/admin/regularDinner/saveOrUpdate`,
  REGULAR_DINNER_GETONE: `${BASE_URL}/order/hq/admin/regularDinner/selectOne`,
  REGULAR_DINNER_DEL: `${BASE_URL}/order/hq/admin/regularDinner/delFlag`,
  REGULAR_DINNER_UPDATE_STATUS: `${BASE_URL}/order/hq/admin/regularDinner/updateStatus`,

  // 设置押金
  DEPOSIT_GET: `${BASE_URL}/order/hq/admin/deposit/current/1`, // 获取
  DEPOSIT_GET_TWO: `${BASE_URL}/order/hq/admin/deposit/current/2`,
  DEPOSIT_SAVE: `${BASE_URL}/order/hq/admin/deposit/save`

  // 维保管理
  // ****维保用的门店信息接口****
}
